package com.jxnu.duewang.zmly.yangZhi.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.jxnu.duewang.zmly.R;

public class MySubActivity extends AppCompatActivity implements View.OnClickListener{

    private ImageView imageView;
    private Button button;
    private TextView textView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_sub);
        imageView= (ImageView) findViewById(R.id.back);
        button= (Button) findViewById(R.id.button_subscription);
        textView= (TextView) findViewById(R.id.text_sub);
        button.setOnClickListener(this);
        textView.setOnClickListener(this);
        imageView.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.button_subscription:
                Intent intent=new Intent(this,MyRecommendActivity.class);
                startActivity(intent);
                break;
            case R.id.text_sub:
                Intent intent1=new Intent(this,LoginActivity.class);
                startActivity(intent1);
                break;
        }
    }
}
